<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>


            const obj = {name: '张三', age: 25, city: '北京'};
const {age, ...newObj} = obj; // 移除 age 属性
console.log(newObj); // 输出: {name: '张三', city: '北京'}



    </script>


</body>
</html>